{% load static %}
<!doctype html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>再见了，黑哥。</title>
    <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" crossorigin="anonymous">
    <link href="{% static 'img/favicon.jpg' %}" rel="icon" type="image/png">
  </head>
  <body>
    <div class="container text-center">
      <p>再见了，黑哥。</p>
      {% for message in messages %}
        <p>{{ message.content }}</p>
      {% endfor %}
      <form action="{% url 'main:last' %}" method="post">
        {% csrf_token %}
        <label for="message">对黑哥说：</label>
        <input type="text" name="message" id="message">
        <button type="submit" class="btn btn-dark">悼念</button>
      </form>
    </div>
    <script src="{% static 'js/bootstrap.bundle.min.js' %}" crossorigin="anonymous"></script>
  </body>
</html>